<template>
    <div>
        <mt-swipe :auto="3000">
            <!-- 谁调用轮播图组件，谁就必须传值lunbotuList -->
            <!-- 此时，lunbotuList 应该是父组件向子组件传值来设置 -->
            <mt-swipe-item v-for="item in lunbotuList" :key="item.img">
                <img :src="item.img" :class="{Full:isFull,notFull:!isFull}">
            </mt-swipe-item>
        </mt-swipe>
    </div>
</template>
<script>
export default {
    data(){
        return {}
    },
    methods:{

    },
    props:["lunbotuList","isFull"]
}
</script>
<style lang="scss">
.Full{
    width: 100%;
}
.notFull{
    display: block;
    margin: 0 auto;
    width: 50%;
}
</style>

